package com.qdlc.p2p.dal.model;

import com.qdlc.p2p.common.util.Page;
import com.qdlc.p2p.dal.dto.Link;
import org.springframework.beans.BeanUtils;

/**
 * Created by hongbinglin on 2016/6/3.
 */
public class LinkModel extends Link {
    /**
     * 序列号
     */
    private static final long serialVersionUID = 1L;

    /** 当前页码 */
    private int page;

    /** 每页数据条数 */
    private int rows = Page.ROWS;

    /** 搜索名称 */
    private String searchName;

    public Link prototype() {
        Link link = new Link();
        BeanUtils.copyProperties(this, link);
        return link;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public String getSearchName() {
        return searchName;
    }

    public void setSearchName(String searchName) {
        this.searchName = searchName;
    }
}
